import React, {Component} from "react"

export default class Clock extends Component {
  constructor() {
    super();
    this.state = {
      time: new Date().toLocaleTimeString()
    }
  }
  render() {
    return (
      <div>
          <h1>{this.state.time}</h1>
      </div>
    )
  }
}